/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package servergui;

import Shared.PackageTransfer;

/**
 *
 * @author Backkom
 */
public class PackageCreate {            
    //data transfer is error ~> abort send data, close connect
    public static PackageTransfer getAbortPK(String body) {
        PackageTransfer pk = new PackageTransfer("ABORT");
        pk.datas = body;
        return pk;
    }
    
    //data is updated
    public static PackageTransfer getUpdatedStatePK(String body) {
        PackageTransfer pk = new PackageTransfer("UPDATETED");
        pk.datas = body;
        return pk;
    }
    
    //server closed
    public static PackageTransfer getMaintainPK(String body) {
        PackageTransfer pk = new PackageTransfer("MAINTAIN");
        pk.datas = body;
        return pk;
    }
}
